package com.ruoyi.project.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 工程数据对象 sys_project
 * 
 * @author ruoyi
 * @date 2020-03-12
 */
public class SysProject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String pName;

    /** 描述 */
    @Excel(name = "描述")
    private String pDescription;

    /** 申请人 */
    @Excel(name = "申请人编号")
    private Long pApply;

    /** 申请时间 */
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 申请人 */
    @Excel(name = "申请人名称", targetAttr = "deptName", type = Excel.Type.EXPORT)
    private SysUser user;

    public SysUser getUser() {
        return user;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setpName(String pName) 
    {
        this.pName = pName;
    }

    public String getpName() 
    {
        return pName;
    }
    public void setpDescription(String pDescription) 
    {
        this.pDescription = pDescription;
    }

    public String getpDescription() 
    {
        return pDescription;
    }
    public void setpApply(Long pApply) 
    {
        this.pApply = pApply;
    }

    public Long getpApply() 
    {
        return pApply;
    }
    public void setApplyTime(Date applyTime) 
    {
        this.applyTime = applyTime;
    }

    public Date getApplyTime() 
    {
        return applyTime;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pName", getpName())
            .append("pDescription", getpDescription())
            .append("pApply", getpApply())
            .append("applyTime", getApplyTime())
            .append("status", getStatus())
            .append("sex", getSex())
            .toString();
    }
}
